<template>
	<view class="page">
		<CustomNav :isBack="true" color="#fff" :topBgColor="topBgColor" title="联系我们"></CustomNav>
		<view class="info-block" :style="'margin-top:'+mt">
			<view class="title">地址</view>
			<view class="detail">
				<image class="icon" src="/static/images/position2.png"></image>
				<view class="text">甘肃省酒泉市肃州区宝泉西路1号</view>
				<view @click="openMap(39.727432,98.483474,'甘肃省酒泉市肃州区宝泉西路1号')" class="operate-btn">
					<image class="btn-icon" src="/static/images/navigate.png"></image>地图
				</view>
			</view>
		</view>
		<view class="info-block">
			<view class="title">联系方式</view>
			<view class="detail">
				<image class="icon" src="/static/images/phone.png"></image>
				<view class="text">王建国 182****2023</view>
				<view @click="call('18200002023')" class="operate-btn">
					<image class="btn-icon" src="/static/images/call.png"></image>拨打
				</view>
			</view>
		</view>
		<view class="info-block">
			<view class="title">邮箱</view>
			<view class="detail">
				<image class="icon" src="/static/images/email.png"></image>
				<view class="text">1730475352@163.com</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				topBgColor: '',
			}
		},
		methods: {

		},
		onShow() {

		}
	}
</script>

<style lang="scss" scoped>
	.page {
		overflow: hidden;
		height: 100%;
		background-image: linear-gradient(to bottom, #68C759, #F8F8F8 400px, #F8F8F8 400px, #F8F8F8);
		background-repeat: no-repeat;

		.info-block {
			width: $content-width;
			margin: 0 auto;
			margin-bottom: 30rpx;
			background: #fff;
			border-radius: 8px;
			padding: 30rpx;

			.title {
				font-weight: bold;
				margin-bottom: 20rpx;
			}

			.detail {
				width: 100%;
				display: flex;
				align-items: center;

				.icon {
					width: 30rpx;
					height: 30rpx;
				}

				.text {
					flex-grow: 1;
					font-size: 28rpx;
					margin-left: 20rpx;
				}

				.operate-btn {
					width: 120rpx;
					height: 50rpx;
					display: flex;
					align-items: center;
					justify-content: center;
					color: $theme-color;
					font-size: 28rpx;
					border-radius: 20px;
					border: 1px solid $theme-color;

					.btn-icon {
						width: 20rpx;
						height: 20rpx;
						margin-right: 10rpx;
					}
				}
			}
		}
	}
</style>